import { GOODSLIST ,ADDGOODSTOCART} from "../action-types/cartTypes"
export const getGoodsList =()=>{
    return {
        type:GOODSLIST
    }
}
export const addGoodsToCart =(goodsId)=>{
    return{
        type:ADDGOODSTOCART,
        goodsId
    }
} 
// export const getAllProducts = () => dispatch => {
//     console.log(dispatch)
//     dispatch(getGoodsList())
//   }